// mixin混入在全局使用后会在每个创建的组件里自动添加相同的代码
export default {
  methods: {
    // 判定员工权限
    checkPrem(btnName) {
    //   const roles = this.$store.state.user.userInfo.roles
    //   return roles ? roles.points.includes(btnName) : false

      // ie不支持该方法
      return this.$store.state.user.userInfo.roles?.points.includes(btnName)
    }
  }
}
